import { INCREMENT,DECREMENT } from "./contain";
import store from "./store";

export const increment_action = (data) => ({type:INCREMENT,data});
export const decrement_action = (data) => ({type: DECREMENT,data})
export const incrementAsync_action = (data,time) => {
  return () => {
    setTimeout(() => {
      store.dispatch(increment_action(data))
      // dispatch(increment_action(data))
    },time)
  }
}

